<?
	$s = microtime(true);

	define('DORB',true);
	require_once('dorb_init.php');
?><!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Dorb Webapp</title>
	
	<link type="text/css" rel="stylesheet" href="style/css-reset.css" />
	<link type="text/css" rel="stylesheet" href="style/main.css" />
	<link type="text/css" rel="stylesheet" href="style/menu.css" />
	<link type="text/css" rel="stylesheet" href="style/forms.css" />
	<link type="text/css" rel="stylesheet" href="style/modal.css" />
	<link type="text/css" rel="stylesheet" href="style/jquery-ui-1.9.1.custom.min.css" />
	
	<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
	
	<script type="text/javascript" src="javascript/jquery-1.8.1.min.js"></script>
	<script type="text/javascript" src="javascript/jquery-ui-1.9.1.custom.min.js"></script>
	<script type="text/javascript" src="javascript/forms.js"></script>
	<script type="text/javascript" src="javascript/jquery.tablesorter.min.js"></script>
	<script type="text/javascript" src="javascript/picnet.table.filter.min.js"></script>
	<script type="text/javascript" src="javascript/dorb.js"></script>
	
</head>
<body>
<?


	// NB: in context['action'] zit al een voorafgaande slash v regt3tq324
	if (file_exists('pages' . $context['action'] . '.phtml'))
		require_once('pages' . $context['action'] . '.phtml');
	elseif ($context['action'] == '/home') {
		require_once('pages/main.phtml');
	}
	else 
	{
		require_once('handler.php');
		setLastFormResult(0,'404: Kan het opgevraagde object niet vinden');
		require_once('pages/main.phtml');
	}

?>

<!-- Exec time: <?=(microtime(true)-$s)?> sec -->
		
</body>
</html>
